package com.ly.autosignin.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author 刘垚
 * @since 2020-08-14
 */
@TableName("sys_task")
public class Task implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "job_id", type = IdType.AUTO)
    private Long jobId;

    /**
     * 任务名
     */
    private String jobName;

    /**
     * 任务组
     */
    private String jobGroup;

    /**
     * 执行的class
     */
    private String invokeTarget;

    /**
     * cron表达式
     */
    private String cronExpression;

    /**
     * 计划错误执行策略
     */
    private String misfirePolicy;

    /**
     * 创建者
     */
    private Long createBy;

    /**
     * 0 启用；1不启用
     */
    private String status;

    public Long getJobId() {
        return jobId;
    }

    public void setJobId(Long jobId) {
        this.jobId = jobId;
    }
    public String getJobName() {
        return jobName;
    }

    public void setJobName(String jobName) {
        this.jobName = jobName;
    }
    public String getJobGroup() {
        return jobGroup;
    }

    public void setJobGroup(String jobGroup) {
        this.jobGroup = jobGroup;
    }
    public String getInvokeTarget() {
        return invokeTarget;
    }

    public void setInvokeTarget(String invokeTarget) {
        this.invokeTarget = invokeTarget;
    }
    public String getCronExpression() {
        return cronExpression;
    }

    public void setCronExpression(String cronExpression) {
        this.cronExpression = cronExpression;
    }
    public String getMisfirePolicy() {
        return misfirePolicy;
    }

    public void setMisfirePolicy(String misfirePolicy) {
        this.misfirePolicy = misfirePolicy;
    }
    public Long getCreateBy() {
        return createBy;
    }

    public void setCreateBy(Long createBy) {
        this.createBy = createBy;
    }
    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "Task{" +
            "jobId=" + jobId +
            ", jobName=" + jobName +
            ", jobGroup=" + jobGroup +
            ", invokeTarget=" + invokeTarget +
            ", cronExpression=" + cronExpression +
            ", misfirePolicy=" + misfirePolicy +
            ", createBy=" + createBy +
            ", status=" + status +
        "}";
    }
}
